<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
	prefix="tiles"%>
<rich:panel header="#{messages['agent.approval']}">
			<h:panelGrid>
				<h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText>
			</h:panelGrid>

			<h:panelGrid width="100%">
				<h:outputText value="#{messages['agent.info']}" styleClass="sub_header" />
			</h:panelGrid>

			<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">

				<h:panelGroup>
					<h:outputLabel for="name" value="#{messages['contact.person']}" styleClass="standardText_Label" />
				</h:panelGroup>
				<h:panelGroup>
					<t:outputText id="name"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
				</h:panelGroup>
				
				<h:panelGroup>
					<h:outputLabel for="department" value="#{messages['department']}" styleClass="standardText_Label" />
				</h:panelGroup>
				<h:panelGroup>
					<t:outputText id="department"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
				</h:panelGroup>
				
				<h:panelGroup>
					
					<h:outputLabel for="vendorcode" value="#{messages['vendor.code']}" styleClass="standardText_Label" />
				</h:panelGroup>
				<h:panelGroup>
					<t:outputText id="vendorcode"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
				</h:panelGroup>
				
			    <h:outputLabel for="telephone" value="#{messages['telephone.no']}" styleClass="standardText_Label" />
		    	<t:outputText id="telephone"   styleClass="standardText" value="#{demoBean.value}">
		    		
		    	</t:outputText>
			    
			    <h:outputLabel for="fax" value="#{messages['fax.no']}" styleClass="standardText_Label" />
		    	<t:outputText id="fax"   styleClass="standardText" value="#{demoBean.value}">
		    		
		    	</t:outputText>
				
			   <h:panelGroup>
				   		
				    <h:outputLabel for="email" value="#{messages['email']}" styleClass="standardText_Label" />
			   </h:panelGroup>
			   <h:panelGroup>
			   	<t:outputText id="email"  styleClass="standardText" value="#{demoBean.value}">
			   	</t:outputText>
			   </h:panelGroup>

			</t:panelGrid>
			
			<h:panelGrid width="100%">
				<h:outputText value="#{messages['company.info']}"
					styleClass="sub_header" />
			</h:panelGrid>
			
			<t:panelGrid id="compInfo" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
				<h:panelGroup>
					 
					<h:outputLabel for="CompanyName" value="#{messages['name']}" styleClass="standardText_Label" />
				</h:panelGroup>
				<t:outputText id="CompanyName"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
				
				<h:panelGroup>
					 
					<h:outputLabel for="RegNo" value="#{messages['registration.no']}" styleClass="standardText_Label" />
				</h:panelGroup>
				<t:outputText id="RegNo"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
	    
				<h:panelGroup>
					 
			    	<h:outputLabel for="CompanyAdress1" value="#{messages['address']}" styleClass="standardText_Label" />
				</h:panelGroup>
				<t:outputText id="CompanyAdress1"   styleClass="standardText" value="#{demoBean.value}"></t:outputText>
			    
			    <h:panelGroup></h:panelGroup>
			    <h:panelGroup>
			    	<t:outputText id="CompanyAdress2"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
			    </h:panelGroup>
			    
			    <h:panelGroup>
					 
			    	<h:outputLabel for="CompanyPostcode" value="#{messages['postcode']}" styleClass="standardText_Label" />
			    </h:panelGroup>
		    	<t:outputText id="CompanyPostcode"  styleClass="standardText" 
		    	value="#{demoBean.value}">
		    		
		    	</t:outputText>
		    	
			    <h:panelGroup>
					 		
			    	<h:outputLabel for="CompanyCity" value="#{messages['city']}" styleClass="standardText_Label" />
			    </h:panelGroup>
		        <t:outputText id="CompanyCity"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
			    	
			    <h:panelGroup>
					 
			    <h:outputLabel for="CompanyCountry" value="#{messages['country']}" styleClass="standardText_Label" />
			    </h:panelGroup>
			    <t:outputText id="CompanyCountry"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
		    	
			    <h:panelGroup>
					 
			   		<h:outputLabel for="CompanyState" value="#{messages['state']}" styleClass="standardText_Label" />
			    </h:panelGroup>
		    	<t:outputText id="CompanyState"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
		    	
			    <h:panelGroup>
					 
			   		<h:outputLabel for="CompanyTerritory" value="#{messages['territory']}" styleClass="standardText_Label" />
			    </h:panelGroup>
		    	<t:outputText id="CompanyTerritory"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
		    	
			    <h:outputLabel for="TelephoneNoOffice" value="#{messages['telephone.no']}" styleClass="standardText_Label" />
		    	<t:outputText id="TelephoneNoOffice"   styleClass="standardText" value="#{demoBean.value}">
		    		
		    	</t:outputText>
			    
			    <h:outputLabel for="FaxNoOffice" value="#{messages['fax.no']}" styleClass="standardText_Label" />
		    	<t:outputText id="FaxNoOffice"   styleClass="standardText" value="#{demoBean.value}">
		    		
		    	</t:outputText>
			</t:panelGrid>
			
			<h:panelGrid width="100%">
				<h:outputText value="#{messages['mailing.info']}"
					styleClass="sub_header" />
			</h:panelGrid>
			
			<t:panelGrid id="mailInfo" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
			
				
				<h:panelGroup>
					<h:outputLabel for="MailAddress1" value="#{messages['address']}" styleClass="standardText_Label" />
				</h:panelGroup>
				
			    <t:outputText id="MailAddress1"   styleClass="standardText" value="#{demoBean.value}"></t:outputText>
			     
			    <h:panelGroup></h:panelGroup>
			    <h:panelGroup>
			    	<t:outputText id="MailAddress2"   styleClass="standardText" value="#{demoBean.value}"></t:outputText>
			    </h:panelGroup>
			    
			    <h:panelGroup>
					<h:outputLabel for="MailPostcode" value="#{messages['postcode']}" styleClass="standardText_Label" />
				</h:panelGroup>
			    <t:outputText id="MailPostcode"   styleClass="standardText" value="#{demoBean.value}">
			    		
			    </t:outputText>
			    
			    <h:panelGroup>
					 <h:outputLabel for="MailCity" value="#{messages['city']}" styleClass="standardText_Label" />
				</h:panelGroup>	
				<t:outputText  id="MailCity"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
			    	
			     <h:panelGroup>
					 <h:outputLabel for="MailCountry" value="#{messages['country']}" styleClass="standardText_Label" />
				</h:panelGroup>
		    	<t:outputText  id="MailCountry"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
			    
			    <h:panelGroup>
					 <h:outputLabel for="MailState" value="#{messages['state']}" styleClass="standardText_Label" />
				</h:panelGroup>
		    	<t:outputText  id="MailState"  styleClass="standardText" value="#{demoBean.value}"></t:outputText>
			    
			</t:panelGrid>
			
			<rich:spacer height="30"></rich:spacer>
			<h:panelGrid width="100%">
				<h:outputText value="#{messages['action']}" styleClass="sub_header" />
				<h:panelGroup>
						<h:outputText value="*" styleClass="standardText_Mandatory" />
						<h:outputText value="#{messages['instruction']}" styleClass="standardText_Instruction" />
				</h:panelGroup>
			</h:panelGrid>
	
		<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		
			<h:outputText></h:outputText>
			<t:message for="code" styleClass="error"></t:message>
	
			<h:panelGroup>
				<h:outputText value="*" styleClass="standardText_Mandatory" />
				<h:outputLabel for="code" value="#{messages['code']}" styleClass="standardText_Label" />
			</h:panelGroup>
			<h:panelGroup>
				<t:inputText id="code" required="true" size="50" maxlength="50" styleClass="standardText" value=""></t:inputText>
			</h:panelGroup>
			
			
			<h:outputText></h:outputText>
			<t:message for="payment" styleClass="error"></t:message>
		
			<h:panelGroup>
				<h:outputText value="*" styleClass="standardText_Mandatory" />
				<h:outputLabel for="payment" value="#{messages['payment.schema']}" styleClass="standardText_Label" />
			</h:panelGroup>
			<h:panelGroup>
				<t:selectOneMenu id="payment" styleClass="standardText" value="" required="true">
					<f:selectItem itemLabel="#{messages['please.select']}" itemValue="" />
					<f:selectItem itemLabel="Payment 1" itemValue="" />
					<f:selectItem itemLabel="Payment 2" itemValue="" />
				</t:selectOneMenu>
			</h:panelGroup>
			
			<h:outputText></h:outputText>
			<t:message for="commissionschema" styleClass="error"></t:message>
		
			<h:panelGroup>
				<h:outputText value="*" styleClass="standardText_Mandatory" />
				<h:outputLabel for="commissionschema" value="#{messages['commission.schema']}" styleClass="standardText_Label" />
			</h:panelGroup>
			<h:panelGroup>
				<t:selectOneMenu id="commissionschema" styleClass="standardText" value="" required="true">
					<f:selectItem itemLabel="#{messages['please.select']}" itemValue="" />
					<f:selectItem itemLabel="commission schema 1" itemValue="" />
					<f:selectItem itemLabel="commission schema 2" itemValue="" />
				</t:selectOneMenu>
			</h:panelGroup>
			
			<h:outputText></h:outputText>
			<t:message for="reason" styleClass="error"></t:message>
			
			<h:panelGroup>
				<h:outputText value="*" styleClass="standardText_Mandatory" />
				<h:outputLabel for="reason" value="#{messages['reason']}" styleClass="standardText_Label" />
			</h:panelGroup>
			<h:panelGroup>
				<t:inputTextarea id="reason" cols="20" rows="5" value=""></t:inputTextarea>
			</h:panelGroup>
			
			<h:panelGroup>
				<h:outputText value="*" styleClass="standardText_Mandatory" />
				<h:outputLabel for="agreementRangeAssign" value="#{messages['agreement.no.range.assign']}" styleClass="standardText_Label" />
			</h:panelGroup>
			<h:panelGroup>
				<t:panelGrid columns="2">
					<t:commandLink value="#{messages['assign']}" styleClass="standardText" immediate="true" action="assignAgentAgreementNo"></t:commandLink>
					<h:outputText value="#{messages['done']}" styleClass="standardText_Label"></h:outputText>
				</t:panelGrid>
			</h:panelGroup>
			
			<t:outputText></t:outputText>
			<rich:spacer height="30"></rich:spacer>
		
			<t:outputText></t:outputText>
			<t:panelGroup>
			 	<h:commandButton value="#{messages['aprrove']}" styleClass="button"  immediate="true"></h:commandButton>
			 	<f:verbatim>&nbsp;</f:verbatim>
	   			<h:commandButton value="#{messages['reject']}" styleClass="button" action=""></h:commandButton>
	   			<f:verbatim>&nbsp;</f:verbatim>
	   			<h:commandButton value="#{messages['cancel']}" styleClass="button" action=""></h:commandButton>
	   		</t:panelGroup>
		</t:panelGrid>
			
</rich:panel>
